/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufpe.cin.ads;

/**
 *
 * @author Victor Lira
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Integer option = null;

        while (option == null || option < 1 || option > 7) {
            System.out.println("Enter a option:");
            System.out.println("1 - Utilization Law");
            System.out.println("2 - Forced Flow Law");
            System.out.println("3 - Little's Law");
            System.out.println("4 - General Response Time Law");
            System.out.println("5 - Interactive Response Time Law");
            System.out.println("6 - Asymptotic Bounds Law");
            System.out.println("7 - Sair");
            try {
                option = InputHelper.nextInt();
            } catch (NumberFormatException nfe) {
                //Do nothing
            }
        }

        switch (option) {
            case 1:
                OperationalLaws.calculateUtilizationLaw();
                break;
            case 2:
                OperationalLaws.calculateForcedFlowLaw();
                break;
            case 3:
                OperationalLaws.calculateLittlesLaw();
                break;
            case 4:
                OperationalLaws.calculateGeneralResponseTimeLaw();
                break;
            case 5:
                OperationalLaws.calculateInteractiveResponseTimeLaw();
                break;
            case 6:
                OperationalLaws.calculateAsymptoticBoundsLaw();
                break;
        }
    }
}
